package com.hmall.mapper;

import com.hmall.model.ContClause;
import com.hmall.model.ContTempDeptRel;
import com.hmall.util.MyMapper;
import com.hmall.vo.ContClauseVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface ContTempDeptRelMapper extends MyMapper<ContTempDeptRel> {

    List<ContTempDeptRel> selectById(@Param("id") Integer id);
    Integer[] selectClauseIdById(@Param("id") Integer id);
    public List<ContClauseVo> selectContClauseVoByDeptId(@Param("deptId") Integer deptId);
    Integer insertClause(@Param("id") Integer id, @Param("clause_id") Integer clause_id);
    Integer deleteById(@Param("clause_id") Integer clause_id, @Param("id") Integer id);

    int disableContract(@Param("id") Integer id);

    int enableContract(@Param("id") Integer id);
}